<!DOCTYPE>

<html>
<head>
  <style>
    .box {
      height: 100px;
      width: 100px;
      margin: 10px;
      background-color: gray;
      content: 'Test';
    }
    
    #box {
      opacity: 1;
      -webkit-transition: opacity 1s linear;
    }
    
    #box.final {
      opacity: 0;
    }
    
  </style>
  <script src="../animations/resources/animation-test-helpers.js"></script>
  <script type="text/javascript">

    const expectedValues = [
      // [time, element-id, property, expected-value, tolerance]
      [0.5, 'box', 'opacity', 0.5, 0.1],
    ];
  
    function setupTest()
    {
      document.getElementById('box').className = 'box final';
    }
  
    runTransitionTest(expectedValues, setupTest);
  </script>
</head>
<body>

  <!-- Test that a transition runs on an element with a 'content' property. -->
  <div id="box" class="box"></div>

  <div id="result"></div>

</body>
</html>
